package com.dragon.modules.yuegou.model.merchant;

import com.dragon.modules.yuegou.entity.merchant.MerchantSalesEntity;
import com.dragon.modules.yuegou.enums.merchant.MerchantSalesSource;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商铺销售额模型类
 * 
 * @author pbuilder generated
 * @date 2019-07-11 14:42:37
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MerchantSales extends MerchantSalesEntity {

	@ApiModelProperty("操作人")
	private String modifiedName;

	@ApiModelProperty("商户logo")
	private String merchantLogo;

	@ApiModelProperty("客单价")
	private BigDecimal singlePrice;

	@ApiModelProperty("坪效")
	private BigDecimal effect;

	@ApiModelProperty("铺位号")
	private String merchantCode;

	@ApiModelProperty("业态")
	private String typeName;

	@ApiModelProperty("租售比")
	private BigDecimal rentSales;

	@ApiModelProperty("面积")
	private BigDecimal merchantAcreage;

	@ApiModelProperty("月销售额")
	private BigDecimal monthSales;

	@ApiModelProperty("年月")
	private String month;

	@ApiModelProperty("商圈名称")
	private String busdName;

	@ApiModelProperty("业态名称")
	private String btypeName;

	public String getBtypeName() {
		return btypeName;
	}

	public void setBtypeName(String btypeName) {
		this.btypeName = btypeName;
	}

	public BigDecimal getMonthSales() {
		return monthSales;
	}

	public void setMonthSales(BigDecimal monthSales) {
		this.monthSales = monthSales;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getBusdName() {
		return busdName;
	}

	public void setBusdName(String busdName) {
		this.busdName = busdName;
	}

	public String getModifiedName() {
		return modifiedName;
	}

	public void setModifiedName(String modifiedName) {
		this.modifiedName = modifiedName;
	}

	public String getMerchantLogo() {
		return merchantLogo;
	}

	public void setMerchantLogo(String merchantLogo) {
		this.merchantLogo = merchantLogo;
	}

	public String getMerchantCode() {
		return merchantCode;
	}

	public void setMerchantCode(String merchantCode) {
		this.merchantCode = merchantCode;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public BigDecimal getSinglePrice() {
		return singlePrice;
	}

	public void setSinglePrice(BigDecimal singlePrice) {
		this.singlePrice = singlePrice;
	}

	public BigDecimal getEffect() {
		return effect;
	}

	public void setEffect(BigDecimal effect) {
		this.effect = effect;
	}

	public BigDecimal getRentSales() {
		return rentSales;
	}

	public void setRentSales(BigDecimal rentSales) {
		this.rentSales = rentSales;
	}

	public BigDecimal getMerchantAcreage() {
		return merchantAcreage;
	}

	public void setMerchantAcreage(BigDecimal merchantAcreage) {
		this.merchantAcreage = merchantAcreage;
	}

	/**
	 * 构造一个空商铺销售额模型对象
	 */
	public MerchantSales(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商铺销售额模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MerchantSales(MerchantSalesEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商铺销售额模型对象
	 * 
	 * @param other 其它对象
	 */
	public MerchantSales(MerchantSales other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public MerchantSales id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public MerchantSales busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户id
	 * 
	 * @param merchantId 商户id
	 * @return 当前对象
	 */
    public MerchantSales merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public BigDecimal getSales() {
    	return sales;
    }

    /**
	 * 设置销售额
	 * 
	 * @param sales 销售额
	 * @return 当前对象
	 */
    public MerchantSales sales(BigDecimal sales) {
    	this.sales = sales;
    	return this;
    }

	@Override
	public Integer getVolume() {
    	return volume;
    }

    /**
	 * 设置成交量
	 * 
	 * @param volume 成交量
	 * @return 当前对象
	 */
    public MerchantSales volume(Integer volume) {
    	this.volume = volume;
    	return this;
    }

	@Override
	public LocalDateTime getStatisticalTime() {
    	return statisticalTime;
    }

    /**
	 * 设置统计时间
	 * 
	 * @param statisticalTime 统计时间
	 * @return 当前对象
	 */
    public MerchantSales statisticalTime(LocalDateTime statisticalTime) {
    	this.statisticalTime = statisticalTime;
    	return this;
    }

	@Override
	public BigDecimal getRental() {
    	return rental;
    }

    /**
	 * 设置租金
	 * 
	 * @param rental 租金
	 * @return 当前对象
	 */
    public MerchantSales rental(BigDecimal rental) {
    	this.rental = rental;
    	return this;
    }

	@Override
	public MerchantSalesSource getSource() {
    	return source;
    }

    /**
	 * 设置[枚举]来源：0-后台导入-CRM、1-小程序录入-MINIAPP
	 * 
	 * @param source [枚举]来源：0-后台导入-CRM、1-小程序录入-MINIAPP
	 * @return 当前对象
	 */
    public MerchantSales source(MerchantSalesSource source) {
    	this.source = source;
    	return this;
    }

	@Override
	public Boolean getIsCount() {
    	return isCount;
    }

    /**
	 * 设置是否任务统计，0表示未统计, 1表示已统计
	 * 
	 * @param isCount 是否任务统计，0表示未统计, 1表示已统计
	 * @return 当前对象
	 */
    public MerchantSales isCount(Boolean isCount) {
    	this.isCount = isCount;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public MerchantSales createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人
	 * 
	 * @param createdBy 创建人
	 * @return 当前对象
	 */
    public MerchantSales createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置修改时间
	 * 
	 * @param modifiedTime 修改时间
	 * @return 当前对象
	 */
    public MerchantSales modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置修改人
	 * 
	 * @param modifiedBy 修改人
	 * @return 当前对象
	 */
    public MerchantSales modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public String getSalesImg() {
    	return salesImg;
    }

    /**
	 * 设置图片
	 * 
	 * @param salesImg 图片
	 * @return 当前对象
	 */
    public MerchantSales salesImg(String salesImg) {
    	this.salesImg = salesImg;
    	return this;
    }

	@Override
	public String getMerchantName() {
    	return merchantName;
    }

    /**
	 * 设置商户名称
	 * 
	 * @param merchantName 商户名称
	 * @return 当前对象
	 */
    public MerchantSales merchantName(String merchantName) {
    	this.merchantName = merchantName;
    	return this;
    }
}
